package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.pojos.WmNews;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;


public interface WmNewsService extends IService<WmNews> {
    /**
     * 根据条件查询分页数据
     * @param dto
     * @return
     */

    public ResponseResult findPage(WmNewsPageReqDto dto);


    /**
     *  发布文章或保存草稿
     * @param dto
     * @return
     */
    public ResponseResult submitNews(WmNewsDto dto) throws Exception;
}
